clean up unused code