Inclusion Criteria:  Healthy men and women patients of 25-45 years. They should have a good oral hygiene level. Presence of at least two posterior class I or II carious lesions to be restored with two different composite resin restorations. All carious lesions in selected patients didn't close to the pulp in the preoperative radiograph. No preoperative pain. Normal occlusal contact with opposing teeth. No history of periodontal treatment, including periodontal surgery, in the past year. All patients had to sign a written consent before being included. A good likelihood of recall availability.  Exclusion Criteria:  patient with severe periodontitis or severe erosion damage. patients with a compromised medical history or had received therapeutic irradiation to the head and neck region. If analgesics or antibiotics had administered by the patient during the past 12 hours preoperatively as it might alter their pain perception. patients reported bruxism or clenching. Greater than grade I mobility or pocket depth greater than 5mm. Non-restorable teeth or hopeless teeth. Immature teeth. Radiographic evidence of external or internal root resorption. Alcoholic and smoker patients. Pregnant or breastfeeding ladies. Patients who had physical disabilities, or who are unable to brush their teeth. Individuals who had sensitive teeth but with one of the following conditions was excluded from the study, teeth with large restoration, abutment of teeth of removable partial dentures, dental restorations, abutment of teeth of removable partial dentures, enamel cracks, leakage of fillings or other restorations teeth, dental pulp lesions, dental abscesses, pulpitis, and atypical facial pain. Patients who had non-carious lesions like attrition, erosion, abrasion or abfraction. Patients had participated in a clinical trial within 6 months before commencement of this trial. Patients unable to return for a recall appointment.