lets.rangesize function and bug fix