adding control graphs