searching generation problem