update comparison helper fixes #22