purge unused code