fixing the order of arguments for function composition.