convert getClass threshold to linear when needed