fix l value alg
Revert "fix l value alg"

This reverts commit d0940bf149438634ac9d7e5871aab7bf98498cf6.
fix l value alg (reverted from commit d0940bf149438634ac9d7e5871aab7bf98498cf6)