move map code