adding some print statements for debugging purpses