fix Rubocop warnings