fixed output pin problem