quick data munging (ruby)