remove dependency on deprecated API