adding some template stuff