w_qdd as input arg