empty cell checks added