speed up and pairwise term parameter choosing