change to flags