changed liveliness check and coloring