removes obsolated code