compose tasks method updated