remove depracted api usage