updated ruby variable reference because of deprecate warnings.