reduce unneeded color allocations