cell conditions check