adding the code tables and making code generation works