fixed code analysis violation