added debugging snippet