rect detecting complete.