more ruby like code