add select function for export