added some debugging println statements, to be removed