added necessary print statements