shorten pattern