remove obsolete code