added the templates for dictionary struct