tweak ratios
more tweaks to algorithm