made it possible to specify the upperbound on the degree of the candidates to search for