- changed code to use the object data correctly in export