add the code for detecting circles