refactor line