made the program useful, search had a bug in it, optimized the search