added conditional define USEOBJECTINSTEADOFRECORD