corrected multiplication bug