use Math.log for ~%