correct function name for replicaset