implements compare reset