update q prediction