adding some tweaks to ruby formatting.