debugging Cycle bases code