library for circle checking