shortening end condition