cleaning now give gender and class median age rather than global median age