reverted changes of also removing the last word of a sequence