added callbacks for record class