write global attributes