the if check disallowed index < 2 so I adjusted it to allow 1