added graphical models