fixed input mistakes