adding latest print statements for error