finished resource_map and visual_map