adds debugging statements