check dict in ref