lists are faulty at the end of the loop