made id field in subdocument unique