change Document#model to Document#object