really bad math fix