corner detection : begin to add more condition