modify colorspace functions.
minor changes