added a static treshold