fixing sonar alerts