merging + fast beautification