open and closed circuit