modified compose and sequence to work better with or without iteration. Compose now is more useful for reduce