makes individual function for flags