remove debug code from stack