new ruby syntax to old