refactored fred small parts of fill
removed uncuncompleted search file