sorting out the patches