adding debug console log