minor change in rep()