added codegen for character returns