reduce sonar warning