try a different magnitude calculation (log2)