remove all the unused code