adding some debugging statements for live testings.