correctHeaps function

Correct age heaping