add method to get documents