index and color working