put the function args into the right place