clear unused code