use pointers to interaction and deltas to reduce code