public function getTuples($data) {
        foreach($this->tuples as $tuple)
            $tuples[$tuple] = $data[$tuple];
        foreach($this->hidden_tuples as $hidden_tuple)
            unset($tuples[$hidden_tuple]); 
        return $tuples;
    }