changing flags