fixed rubocop complaints about the changes