added q_type