last step removes overlapping between blocks