swap order of some output