correction search function