added prettyNameFromModel function