changed mongo doc structure