added data_pop_sex view function