helper function for exporting birds data