few cosmetic adjustments for generated code
adding shared array