added template binding