following rubocop advice