fixing some search stuff