formatting on update