added new var to read in index