removed support for cycle detection because it is unused