replace deprecated function calls