moving functions, exporting