changed interation of results sets to hyrdation