add size constrain when searching