update flag set to true