remove unused code fragments