added advanced template