began replacing deprecated API usages