tweak search function