cleaned up ruby