updated advanced template