reorder arguments so that function is the second argument in each