add export function to map