search function implemented