minor changes in numcontracts
enable to change pair finding period