changed order of flags