template now working