adding life span handler