fixed parser to start indexing from 0
fixed parser to start indexing from 0