Elijah wanted to be better than his ancestors and failed. He wanted to be more righteous, more zealous, more faithful. Then, over the course of his 40 days journey he discovered all he could do was do the best he could and focus not on generations past but on generations in the future. He could only try to be a good ancestor, not a better ancestor.