proper math for l logPiece
proper math for l logPiece