input errors fixed