New script for the samePairs