fix calculation of level to be uniform with 10x threshold