add code and string to model