need to call getDocument