fixed phpt of log2 variation