modified setcolor