implemented group search method