remove gate ref