fixed input problem