document scope method