checking references