setting a table element to null erases the entry from the hash table instead of simply changing it