upgraded another deprecated function call