added comment to flag operations