small fix in argument swapping