fixed division by zero. use nly alives