merge joes pattern