handle multiple formats for one record