changename of rmain to main_surface to prepare for region pipeline