The chop function was used incorrectly