working on ruby output