Changed shortening function