initialized the docoument