final version, modified some color setting