remove gen code