Line 148 is redundant - the loop in line 144 is doing the same thing!