max threshold added