handle special case q -t-> r