added some debug lines