syed search function