added the functions to export from infinite populations