custom logic for color use