cell patterns if