lookup table works but log is broken