do reference checks well

do reference checks well

do reference checks well