remove major sonar warning