working on input errors