added add method for EntityRecord