skeleton for prune_data