before use template