Fixing range as per dean's comment