add function to export