[IMP] convert code old api to new api.