optimized the chop