pre modify search