change flags