Removed "in loop" in ts 2 year while loop