adding simple contraction procedure