fix another deprecated function