resolved intellij warnings