adjusted for replica set