introduce scaling and bias into the template support