update accoring changed API