adding threshold operation.