remove deprecated API's part 1: declarations