changed export function for filename