thermal model completed, compiler time error debugged