change to the loops