correct indentation
refactorings as suggested by sonar