finishes the searching methods for master files