made ruby move code more complex