change order of flag