reformat search file