fix deprecated/removed function call