fixed output checking