edit generatecode method