update the multiply method