update export function