replace deprecated class.