model diagnosis is added
moved to Oldscript