code cleanup

just a small code cleanup to remove some sonar issues