removes some debugging code