fixed locking issue and added lower limit