@ pp: working on graphical model