added debugging log