fix rubocop warnings