changed template variables from Object to String