adding debug info to fix bug