update with debug