pairs completeness code update