reverted changes of also removing the last word of a sequence also fixed an error of a zero count