use the more accurate equality check
Merge pull request #88 from railsbridge/equality_check

use the more accurate equality check

Closes #74