added a print statement to debug the output