minor ruby adjustments