changed the way HDP sampler handler tracks the resultset