program starts numbering the list at 1 instead of 0