fix bug swapping args around