determine and convert brick cell properly