adding in some debug statements