add atomic document