improvement shrinking algo