added print statements.