refactor reps