removed redundant result reset