changed another deprecated function call