fixing rubocop warning