added regions and region maps + found out how to improve performance (not yet implemented)