store added docs to array first  instead of pushing to model direclty