added contents to function templates