onlyneeded looks at generation number