detect circle function started