add dyInteraction function