implemented self contractions
internal contraction of indices added