use apply pattern to chg formate