Some clean up, specified ruby code