fixing syntax issue in cd