fixed code with codepro analytix