adding pairing record material creation code