modify flag statement