cleanup, removed cycle function