added interaction degree calculation for found errors