shorten sequence