initialize offset on each search