implemented export-function