edited to removed whitespace in generated code