altered to better test resource associations