adding some debug statements