changed treatment of first chunk, parameters for cc threshold is calculated using sigma