forgot one index of using 1-index instead of 0