subtemplates now working