matching mosaic to box
checking for nonsensical zeros