changed 'template' to 'auto' and fixed one return type 'string' ...