legend reset and result reset