added loop to save all locations