started input loop