using attr accessors to evaluate format and data fields