corrected template references