prune some old code