configurable threshold added