more work on colorConvert function