removing use of deprecated class