to add debug info for register