improve getLimittFromLevel