some math errors, duh