using more than one threshold