pointer 2
fixed wrong qd index