added real template code