implemented deuteron contractions