added flow chart 2