added export function