extended template now works