bugfix / optimization -- don't keep 0s and 10s around, they slow things down