loops linked by line number better now