correcting issues with sonar