simplify code concerning vlan=0