update depricated apis