created getDocument and getTitle