finish exporting functions