indexing from 0 to N-1 (instead of 1 to N)