cleaned up the codes and done for the color tool