clean up input methods