reset the locations of some classes
merged