sonar violations fix