change map to be 0-indexed
about to get rid of the autofill stuff