off by one error cause arrays start indexing at 0!