got the template chanining working