adding subsetting to incoming and outgoing refs