result value should be integer; closes #89