unnecessary local before return
sonar warnings