adding debugging statements