new print statements and termination techniques