changed how map is saved