taking logs.