modify do.call argument in flip