removes debugging code