worked on inputs