added [].index() to get parity with paper
more parity with paper
more parity with paper