modify format dict