updating location molecules and atoms