input now working