clean some old code