wrong assignment of occ column in the bimodality function