added partial code generator