added interaction degree script