updating / formatting document