output contraction