move regions replaced with other code