circle detection working