removed a big of debugging code