extra check for flat detection