fixing the template