Generalized cycle shrinking