chop_ranges use cake only
beautified some things...