update flags - intermediate