changed out refids to name equals