remove duplicate unused code