Repeat a certain part of code.

Then, once you've done that and understand the difference between the two, perhaps you could explain what your code is supposed to do and what it is actually doing.

Pete