added rules for merging

Rules for Merging added