replaced two calls to contig with one to vector
removed rc checking and assuming errors are fatal