updated to use proper table to get cell types