q and r