refactoring
created seperate file for manual_region_optimizer