with testing switch for output