remove unused old code