ruby code for distribution tidy up
ruby code for distribution tidy up