check reference