fixed a smaller search problem