update the corner detection