rename functions to be more ruby like