clean up old code fragments