rid unused code