fixed even funkier multiplication logic