retaining template