dev.off in rep