generalized weak contraction