finished data munging script