write docment