add some ruby code