move interaction functions to interactions file