made ruby style fixes