finish data munging