fixed input loop