added debug console log