logic and tests done. search left