Revert "replace template"

This reverts commit 921b4b73766d6e6d03f116277da2f4dcb8414f1b.