buffer: the index starts at 1 so adjust