add cd method