modify the flags