removed all errors based of default code inspection of intellij