fixed tolerance in compare