use the more accurate equality check

closes #74