removing excess logging from debug code