script q and r for home