this will divide by 0 by default - maybe make the default really small, like 0.00000000001 instead of 0