update figure 3,4 and corespondng code