remove unnecessary check in reference()