changed variable names in map_edit