added print statements for Elise to fix the bug