debug some mistake