add records as attribute/method