trying to fix the template bug