removed debug code for cd