finishes functionality for all flag categories