started adding export function