merge acculumlated patches