remove debug bits