indexidrange correctly initiliazed