move template on same line as function