add interaction table function