last version with reduced table