simplified some of the chopping code