optimized search for food