removed obsolete cd function