add debugging statements