modified pahse 2 final adding  system decompostion