re formatting ruby code