slight refactor, hecka comments
refactor 'cd'