remove the template function from the init function