followed rubocop guidelines