make cell display correctly