compose and flip functions now exported