reduced memory for contraction