messy cd implementation