worked on input