use function for part of echo/copy common to saved and new search