update word macro to have better formatting