debug some tiny mistakes