changed block code on ruby block