change search file constructor