complete first iteration of adding reference selector