print statements added for debugging