more logical code, recentering the map