remove debug code from spec