fix : reverse order of parameters in local functions