use colorize function api