updated sytax for detecting empty areas and singletons