index modified for testing