added logging print statement