improve declaration error handeling for circle