updated resultGenerator