added temorary debug code.