add extra cases for getting new range end