added last print statements before testing/debugging