q to q_s and q_d