code was reformatted according to intellij idea code style