fixed reverse order of argument to parameter assignment