compose tasks method patched