adding debug console logs for the conversion process