updated search points algorithm