added new collection for flags and check for correct date