removed a nested loop reek