double pair problem fixed