sorry about all the commits, i just keep realizing that i broke a math
thing. even though the results are about the same no matter what.