reduce code, display flags for race