creating references for later lookup and visting.