big fix when reps = 1

now works for only one iteration