clean up debugging code