introduced a slice out of bounds error