log2 replaced