updates to fix Rubocop errors