a lot of merging and cleaning