removed weird generated code