using custom file conversion function