removing var=ref from head