simplified boundary detection validation