changed use of deprecated methods