added debugging back in