add function to initialize cells