Unnecessary range check removed