more legible code to add range ends