updated export fn