added mroe debugging statements