remove some code in LocationData from server to client