remove use of deprecated API