inlined templates