got simple boundary detection