fixed bug, index starts from 1 now