read docs from separate array