adding in debug statements