appended search function