input loop working