adding export function