updated template and comment, to not have global shared ref type variables