prune necessary output