remove unnecessary cd