fixes sonar errors