compose dataset method patched