implemented batch search