fix for returning templates

added