Added return  to _cd method