Added condition for merging notes