liveness analysis works