document method