search function updates