grid-detection