refactor steps for user_line