improve the debug