just added some debug statements