typing up code issues found by sonar