used log for multiplication of doubles!