remove illegal var