rubocop code cleanup