fixed sonar error so it compiles