added export function for data