add debug codes. by the way, too deep indentation...