added autoselect corner