changed flags pos