why reverse the order? (logb before log)? it's a bit surprising..