prepare for real template