add join method
writting document