reduces complicated code from storeInteractionData