before switching to corner detection mode