fixed notation in factor graphs