reformated code with intellij