flow chart added