use actual threshold in linear