added print statement for debug