input finally working