changed input threshold