solved (almost) all rubocop issues