for ruby code