fixed sonar major violation