These two lines can be done outside of the loop, I believe