possible fix and debug messages for result not printing.