search tasks func