FIX: now is computing correctly the table