prepare function in Template class