more debugging statements added