ad template for regresion problem