add color type support