add { } in change flag status