remove ref type