generated a load of code