code generator 50%