trying to make it faster
faster
avoid calculating was alive