removes extra debug code