updated the way demographics are exported