fixed some math, shouldn't be just zeroes now