fixed really funky addition and multiplication