fixed equality test in result