ruby clean up