added data munging