cleaning up ruby