keep working on blanks

The boundaryCnt thing is completely wrong.