moving template inline