updating detection
normalization threshold added