removes obsolete code